package com.kingsoft.dc.khaos.module.spark.constants

/**
  * create by yansu on 2020/09/02 10:25
  */
object MppConstants {
  // ============================gp============================
  final val MODULE_GP_SOURCE_READ_NUMS = "module.greenplum.source.read.nums"
  final val MODULE_GP_SOURCE_QUERY_TIMEOUT = "module.greenplum.source.query.timeout"
  final val MODULE_GP_SOURCE_LOGIN_TIMEOUT = "module.greenplum.source.login.timeout"
  final val DEFAULT_READ_NUMS = "1000000"
  final val DEFAULT_QUERY_TIMEOUT = "6000"
  final val DEFAULT_LOGIN_TIMEOUT = "6000"

  final val MODULE_GP_SOURCE_JDBC_OPTIONS = "module.greenplum.source.jdbc.options."
  final val MODULE_GP_SOURCE_JDBC_URL_PARAM = "module.greenplum.source.jdbc.url.param"

  // ============================mpp============================
  // jdbc连接超时时间
  final val MODULE_MPP_SOURCE_JDBC_CONNECT_TIMEOUT = "module.mpp.source.jdbc.connect.timeout"

  final val MODULE_MPP_SOURCE_TMP_COS_BUCKET = "module.mpp.source.tmp.cos.bucket"
  final val MODULE_MPP_SOURCE_TMP_COS_ENDPOINT = "module.mpp.source.tmp.cos.endpoint"
  final val MODULE_MPP_SOURCE_TMP_COS_REGION = "module.mpp.source.tmp.cos.region"
  final val MODULE_MPP_SOURCE_TMP_COS_DELIMETER = "module.mpp.source.tmp.cos.delimeter"

  final val MODULE_MPP_SINK_JDBC_CONNECT_TIMEOUT = "module.mpp.sink.jdbc.connect.timeout"

  final val MODULE_MPP_SINK_TMP_COS_BUCKET = "module.mpp.sink.tmp.cos.bucket"
  final val MODULE_MPP_SINK_TMP_COS_ENDPOINT = "module.mpp.sink.tmp.cos.endpoint"
  final val MODULE_MPP_SINK_TMP_COS_REGION = "module.mpp.sink.tmp.cos.region"
  final val MODULE_MPP_SINK_TMP_COS_DELIMETER = "module.mpp.sink.tmp.cos.delimeter"

  final val DEFAULT_CONNECT_TIMEOUT = "6000"
}
